package com.haiyou.common.thread.task;

import java.util.concurrent.atomic.AtomicLong;


import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

/**
 * 
 * 
 * @Description: 抽象任务
 * @author xingyuan
 * @date 2022年2月15日 下午5:35:15
 */	
@Slf4j
public abstract class AbstractCoreTask implements Slowlable {

	private static final AtomicLong incr = new AtomicLong();

	{
		id = incr.incrementAndGet();
	}

	@Getter
	private final long id;

	/**
	 * 任务提交堆栈
	 */
	protected Throwable ex;

	{
		ex = new Throwable();
	}


}
